<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>错误页面</title>
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
<body class="bg-light">
    <div class="container mt-5">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div class="card shadow">
                    <div class="card-header bg-danger text-white">
                        <h3 class="card-title mb-0">
                            <i class="fas fa-exclamation-triangle me-2"></i>系统错误
                        </h3>
                    </div>
                    <div class="card-body">
                        <div class="alert alert-danger" role="alert">
                            <h4 class="alert-heading">错误详情：</h4>
                            <p class="mb-1"><strong>状态码：</strong><span th:text="${status}">404</span></p>
                            <p class="mb-1"><strong>错误类型：</strong><span th:text="${error}">Not Found</span></p>
                            <p class="mb-0"><strong>错误信息：</strong><span th:text="${message}">页面不存在</span></p>
                        </div>
                        <hr>
                        <div class="text-center">
                            <p>请尝试以下操作：</p>
                            <a href="/ch04/login" class="btn btn-primary me-2">
                                <i class="fas fa-home me-1"></i>返回首页
                            </a>
                            <button class="btn btn-outline-secondary" onclick="history.back()">
                                <i class="fas fa-arrow-left me-1"></i>返回上一页
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
</head>
<body>

</body>
</html>